package com.example.wananrdroid.not;


import com.example.wananrdroid.bean.ArticleBean;
import com.example.wananrdroid.bean.BannerBean;
import com.example.wananrdroid.bean.GuangBean;
import com.example.wananrdroid.bean.ListBean;
import com.example.wananrdroid.bean.NaviBean;
import com.example.wananrdroid.bean.TreeBean;
import com.example.wananrdroid.bean.WenBean;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface ApiService {
    String wan="https://wanandroid.com/";
    //广场
    @GET("user_article/list/0/json")
    Observable<GuangBean> getguandata();
    //首页
    @GET("article/list/0/json")
    Observable<ArticleBean> getarticledata();
    //banner
    @GET("banner/json")
    Observable<BannerBean> getbannerdata();
    //问答
    @GET("wenda/list/1/json")
    Observable<WenBean> getwendata();
    //导航
    @GET("navi/json")
    Observable<NaviBean> getnavidata();
    //体系
    @GET("tree/json")
    Observable<TreeBean> gettreedata();
    //项目
    @GET("article/list/{page}/json")
    Observable<ListBean> getlistdata(@Path("page") int page, @Query("cid") int cid);
}
